<template>
  <div>
        <!-- 查询区域 -->
        <div class="table-page-search-wrapper">
          <a-form layout="inline" @keyup.enter.native="searchQuery">
            <a-row :gutter="24">
              <a-col :md="6" :sm="8">
                <a-form-item label="合同号">
                  <a-input placeholder="请输入合同号" v-model="queryParam.contractNumber"></a-input>
                </a-form-item>
              </a-col>
              <a-col :md="6" :sm="8">
                <a-form-item label="屏号">
                  <a-input placeholder="请输入屏号" v-model="queryParam.productNo"></a-input>
                </a-form-item>
              </a-col>
              <a-col :md="6" :sm="8" >
            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
            </span>
              </a-col>

            </a-row>
          </a-form>
        </div>
        <!-- 查询区域-END -->

        <!-- 操作按钮区域 -->
        <div class="table-operator">
        </div>

        <!-- table区域-begin -->
        <div>
          <a-table
            ref="table"
            size="middle"
            bordered
            rowKey="productNo"
            :columns="columns"
            :dataSource="dataSource"
            :pagination="ipagination"
            filterMultiple="false"
            :loading="loading"
            @change="handleTableChange">
            <template slot="action" slot-scope="text, record">
              <a @click="handleReview(record)">查看</a>
            </template>
          </a-table>
          <zxjEip2cCcjc-modal ref="modalForm"></zxjEip2cCcjc-modal>
        </div>
        </div>
</template>

<script>

  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  import ZxjEip2cCcjcModal from './modules/ZxjEip2cCcjcModal'
  import { deleteAction,postAction,getAction,downFile } from '@/api/manage'

  export default {
    name: "ZxjEip2cCcjcListOver",
    mixins:[JeecgListMixin],
    components: {
      ZxjEip2cCcjcModal
    },
    data () {
      return {
        // 表头
        columns: [
          {
            title: '序号',
            dataIndex: '',
            width:60,
            align:"center",
            customRender:function (t,r,index) {
              return parseInt(index)+1;
            }
          },
          {
            title:'生产订单号',
            align:"center",
            dataIndex: 'productOrdNo'
          },
          {
            title:'合同号',
            align:"center",
            dataIndex: 'contractNumber'
          },
          {
            title:'屏号',
            align:"center",
            dataIndex: 'productNo'
          },
          {
            title:'是否已抓取',
            align:"center",
            dataIndex: 'ioflag',
            customRender:function (t,r,index) {
              if (t==='1'){
                return '否';
              } else {
                return '是';
              }
            }
          },
          {
            title: '操作',
            dataIndex: 'action',
            align:"center",
            scopedSlots: { customRender: 'action' },
          }
        ],
        url: {
          list: "/apis/zxjEip2cCcjc/overlist"
        },
        dictOptions:{
        } 
      }
    },
    methods: {
      initDictConfig(){
      },
      handleReview:function(record) {
        this.$refs.modalForm.addModal(record);
        this.$refs.modalForm.title = "查看详细信息";
      }
    }
  }
</script>